package tongkeyon.behavior.iterators;

/**
 * @Author: keyon <tongkeyon@163.com>
 * @Date: 2020/2/25 14:46
 * @Version 1.0
 */
public class Fruit {
    private String name;
    private Double price;


    public Fruit() {
    }

    public Fruit(String name, Double price) {
        this.name = name;
        this.price = price;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Fruit{" +
                "name='" + name + '\'' +
                ", price=" + price +
                '}';
    }
}
